for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Install GitHub App
"use strict";
(function() {
/** global availableMoves, submitMoveHREF */
function submitMove(data) {
var e = $(this);
data.toX = e.data('x');
data.toY = e.data('y');
ajaxLink(submitMoveHREF, {callback: highlightMoves, params: data});
submitMoveHREF
/** global: submitMoveHREF */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
highlightMoves
/** global: highlightMoves */
}
function bindOne(func, arg) {
return function() {
return func.call(this, arg);
};
window.highlightMoves = function() {
var highlighted = $('.chessHighlight');
if (highlighted.length === 0) {
var x = e.data('x');
var y = e.data('y');
var boundSubmitMove = bindOne(submitMove, {x:x,y:y});
$(availableMoves[y][x]).addClass('chessHighlight').each(function(i, e) {
availableMoves
/** global: availableMoves */
e.onclick = boundSubmitMove;
});
} else {
highlighted.removeClass('chessHighlight').each(function(i, e){
e.onclick = highlightMoves;
})();
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.